<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Business Login</title>
  <style>
    body {
      font-family: 'Arial', sans-serif;
      background: url('https://pic3.zhimg.com/v2-60c254dd8ebe57779d3ba359ff1fc321_r.jpg?source=1940ef5c') no-repeat center center fixed;
      margin: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      height: 100vh;
    }

    .login-container {
      background-color: #fff;
      padding: 20px;
      border-radius: 8px;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
      width: 300px; /* 固定宽度 */
      text-align: center;
      max-height: calc(300px * 1.618); /* 使用黄金比例计算最大高度 */
      overflow: hidden; /* 隐藏溢出的部分 */
    }

    .login-container h2 {
      color: #333;
    }

    .login-form {
      margin-top: 20px;
    }

    .form-group {
      margin-bottom: 15px;
    }

    label {
      display: block;
      margin-bottom: 8px;
      color: #555;
    }

    input {
      width: 100%;
      padding: 10px;
      border: 1px solid #ccc;
      border-radius: 4px;
      box-sizing: border-box;
    }

    button {
      background-color: #4caf50;
      color: #fff;
      padding: 10px 15px;
      border: none;
      border-radius: 4px;
      cursor: pointer;
    }

    button:hover {
      background-color: #45a049;
    }
  </style>
</head>
<body>

  <div class="login-container">
    <h2> 注册 </h2>

    <form class="login-form" action="register" method="post">
      <div class="form-group">
        <label for="username">账号:</label>
        <input type="text" id="username" name="username" >
      </div>

      <div class="form-group">
        <label for="password">密码:</label>
        <input type="password" id="password" name="password" >
      </div>

      <div class="form-group">
        <label for="password">昵称:</label>
        <input type="password" id="nickname" name="nickname" >
      </div>

      <button type="submit">注册</button>
    </form>
  </div>

</body>
</html>


